﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace GuiLayer
{
    /// <summary>
    /// Interaction logic for ApKlantenToonAlle.xaml
    /// </summary>
    public partial class ApKlantenToonAlle : Window
    {

        public List<GuiLayer.KlantenReference.Klanten> KlantenLijst { get; set; }

        GuiLayer.KlantenReference.iKlantenClient client = new GuiLayer.KlantenReference.iKlantenClient();

        public ApKlantenToonAlle()
        {
            List<GuiLayer.KlantenReference.Klanten> l = client.GetAlleKlanten().ToList();
            KlantenLijst = l;
            InitializeComponent();
        }

        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

        private void btnTerug_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            ApKlantenAlgemeen f2 = new ApKlantenAlgemeen();
            f2.ShowDialog();
            
        }
    }
}
